//import java.util.Random;
//import java.util.Scanner;
//
//public class Test0426 {
//
//    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        while (scanner.hasNextInt()) {
//            int seed = scanner.nextInt();
//            Random random = new Random(seed);
//
//            //write your code here......
//            int ret=random.nextInt(6)+1;
//            System.out.println(ret);
//
//
//        }
//    }
//
//}
//
//import java.util.Scanner;
//
//public class Test0426{
//    public static void main(String[] args) {
//        Scanner scanner=new Scanner(System.in);
//        double num = scanner.nextDouble();
//
//        //write your code here......
//        System.out.println(Math.abs(num)+"\n"+Math.sqrt(num)+"\n"+Math.log(num)+"\n"+Math.sin(num));
//
//
//    }
//}

import java.util.Calendar;
import java.util.Scanner;

public class Test0426 {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        int year = console.nextInt();

        //write your code here......
        Calendar calendar=Calendar.getInstance();
        for(int month=1;month<=12;month++){
            calendar.set(year,month,0);
            System.out.println(year+"年"+month+"月"+ ":"+calendar.get(Calendar.DAY_OF_MONTH)+"天");
        }


    }
}